package net.mingsoft.expertmanage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 企业信息实体类
 */
@Data
@TableName("company_info")
public class CompanyEntity {
    @TableId(value = "company_code", type = IdType.INPUT)
    private String companyCode;
    private Integer serialNo;
    private String companyName;
    private String companyType;
    private String industryPrimary;
    private String industrySecondary;
    private String registrationAddress;
    private String contactPerson;
    private String contactInfo;
    private String businessKeywords;
    private String cooperationType;
    private String requiredTechField;
    private String requiredExpertTitle;
    private String matchedExpertCodes;
    private String cooperationStatus;
    private String cooperationHistory;
    private String remarks;
    
    /**
     * 获取ID (兼容方法)
     * @return 返回企业编号作为ID
     */
    public String getId() {
        return this.companyCode;
    }
    
    /**
     * 设置ID (兼容方法)
     * @param id 企业编号
     */
    public void setId(String id) {
        this.companyCode = id;
    }
} 